﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel;

namespace Nok_Air.NokObjects
{
    public class AirportItem : INotifyPropertyChanged
    {
        private string _airportCode;
        public string AirportCode
        {
            get
            {
                return _airportCode;
            }
            set
            {
                if (value != _airportCode)
                {
                    _airportCode = value;
                    NotifyPropertyChanged("AirportCode");
                }
            }
        }

        private string _airPortName;
        public string AirPortName
        {
            get
            {
                return _airPortName;
            }
            set
            {
                if (value != _airPortName)
                {
                    _airPortName = value;
                    NotifyPropertyChanged("AirPortName");
                }
            }
        }

        private string _airPortIcon;
        public string AirPortIcon
        {
            get
            {
                return _airPortIcon;
            }
            set
            {
                if (value != _airPortIcon)
                {
                    _airPortIcon = value;
                    NotifyPropertyChanged("AirPortIcon");
                }
            }
        }

        private string _airPortLocation;
        public string AirPortLocation
        {
            get
            {
                return _airPortLocation;
            }
            set
            {
                if (value != _airPortLocation)
                {
                    _airPortLocation = value;
                    NotifyPropertyChanged("AirPortLocation");
                }
            }
        }

        private string _airPortLat;
        public string AirPortLat
        {
            get
            {
                return _airPortLat;
            }
            set
            {
                if (value != _airPortLat)
                {
                    _airPortLat = value;
                    NotifyPropertyChanged("AirPortLat");
                }
            }
        }

        private string _airPortLon;
        public string AirPortLon
        {
            get
            {
                return _airPortLon;
            }
            set
            {
                if (value != _airPortLon)
                {
                    _airPortLon = value;
                    NotifyPropertyChanged("AirPortLon");
                }
            }
        }

        private string _airPortPhone;
        public string AirPortPhone
        {
            get
            {
                return _airPortPhone;
            }
            set
            {
                if (value != _airPortPhone)
                {
                    _airPortPhone = value;
                    NotifyPropertyChanged("AirPortPhone");
                }
            }
        }

        private string _airPortPhoneName;
        public string AirPortPhoneName
        {
            get
            {
                return _airPortPhoneName;
            }
            set
            {
                if (value != _airPortPhoneName)
                {
                    _airPortPhoneName = value;
                    NotifyPropertyChanged("AirPortPhoneName");
                }
            }
        }

        private string _airPortCityCode;
        public string AirPortCityCode
        {
            get
            {
                return _airPortCityCode;
            }
            set
            {
                if (value != _airPortCityCode)
                {
                    _airPortCityCode = value;
                    NotifyPropertyChanged("AirPortCityCode");
                }
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;
        private void NotifyPropertyChanged(String propertyName)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (null != handler)
            {
                handler(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}